/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-03-18 16:33:03
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-03-21 13:48:51
 */
import request from "@/utils/request.js";

// 价格管理列表列表
export const priceList = params => {
    return request({
        method: 'get',
        url: '/school/priceManage/list',
        params
    })
}

// 导出所有
export const exportAll = params => {
    return request({
        method: 'get',
        url: '/school/priceManage/exportAll',
        params
    })
}

// - 批量导出
export const exportAny = data => {
    return request({
        method: 'post',
        url: '/school/priceManage/export',
        data
    })
}

// - 更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: '/school/priceManage/changeDirector',
        params
    })
}
// - 新增/修改价格条目 包括上下架
export const updatePrice = data => {
    return request({
        method: 'post',
        url: '/school/priceManage/update',
        data
    })
}

// - 删除价格条目
export const deletePrice = params => {
    return request({
        method: 'get',
        url: '/school/priceManage/delete',
        params
    })
}
